home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Bank smakow
/
BankSmakow.air
/
BankSmakow.swf
/
scripts
/
com
/
makingwaves
/
util
/
IngredientsFormatter.as
< prev
Wrap
Text File
|
2009-12-16
|
1KB
|
39 lines
package com.makingwaves.util
{
import com.makingwaves.model.ModelLocator;
import com.makingwaves.vo.Ingredient;
import com.makingwaves.vo.Product;
import mx.formatters.Formatter;
public class IngredientsFormatter extends Formatter
{
public function IngredientsFormatter()
{
super();
}
public static function format(param1:Object) : String
{
var _loc3_:String = null;
var _loc4_:Ingredient = null;
var _loc5_:Product = null;
var _loc2_:ModelLocator = ModelLocator.getInstance();
if(param1 != null && param1 is Array)
{
_loc3_ = "";
for each(_loc4_ in param1)
{
if((_loc5_ = _loc2_.selectedProducts[_loc4_.productId] as Product) != null)
{
_loc3_ += _loc5_.name + ", ";
}
}
_loc3_ = _loc3_.substr(0,_loc3_.length - 2);
}
return _loc3_;
}
}
}